package eval.host;


public class HostCapacity {
	private int cpu;
	private int memory;
	private int power;
	private int currentCpuLoad;
	private int currentMemLoad;
	private int hostBaseEnergyConsumption;
	private int hostPowerOnEnergyConsumption;
	

	public HostCapacity(int cpu, int memory,int power, int hostBaseEnergyConsumption, int hostPowerOnEnergyConsumption
	) {
		this.cpu = cpu;
		this.memory = memory;
		this.power = power;
		this.currentCpuLoad = 0;
		this.currentMemLoad = 0;
		this.hostBaseEnergyConsumption = hostBaseEnergyConsumption;
		this.hostPowerOnEnergyConsumption = hostPowerOnEnergyConsumption;
	}

	public int getPower() {
		return power;
	}

	public int getCpuCapacity() {
		return cpu;
	}

	public int getMemCapacity() {
		return memory;
	}
	
	public int getCpuCurrentLoad(){
		return currentCpuLoad;
	}
	
	public int getMemCurrentLoad(){
		return currentMemLoad;
	}
	
	public int getHostBaseEnergyConsumption(){
		return hostBaseEnergyConsumption;
	}
	
	public int getHostPowerOnEnergyConsumption(){
		return hostPowerOnEnergyConsumption;
	}
	
	
	//TODO add and sub load

	@Override
	public String toString() {
		return "CPU: " + cpu + ", MEM: " + memory;
	}
}
